Skip to content

Ensure that 2fa is checked on reset-password#9857

Merged
zeripath merged 5 commits into
go-gitea:masterfrom
zeripath:reset-password-2fa
Jan 19, 2020
Merged

Ensure that 2fa is checked on reset-password#9857
zeripath merged 5 commits into
go-gitea:masterfrom
zeripath:reset-password-2fa

Conversation

@zeripath
Copy link
Copy Markdown
Contributor

No description provided.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 18, 2020

Codecov Report

Merging #9857 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9857      +/-   ##
==========================================
- Coverage   42.29%   42.28%   -0.02%     
==========================================
  Files         604      604              
  Lines       79212    79228      +16     
==========================================
- Hits        33504    33501       -3     
- Misses      41579    41598      +19     
  Partials     4129     4129
Impacted Files Coverage Δ
modules/graceful/server.go 48.55% <0%> (-3.8%) ⬇️
modules/setting/setting.go 45.09% <0%> (-0.44%) ⬇️
services/pull/check.go 56.64% <0%> (-2.1%) ⬇️
models/error.go 30.76% <0%> (-0.55%) ⬇️
modules/avatar/avatar.go 54% <0%> (+6%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a1cf3c...e87bbce. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 18, 2020
Comment thread routers/user/auth.go Outdated
Comment thread routers/user/auth.go Outdated
Comment thread routers/user/auth.go Outdated
Comment thread routers/user/auth.go Outdated
Comment thread routers/user/auth.go Outdated
Comment thread routers/user/auth.go Outdated
Comment thread templates/user/auth/reset_passwd.tmpl Outdated
Co-Authored-By: Lauris BH <lauris@nix.lv>
@zeripath
Copy link
Copy Markdown
Contributor Author

zeripath commented Jan 19, 2020

So I think I need to move the scratch code and passcode check to be after the validation asif the scratch code is used you need to redirect to change it?

Done.

Comment thread templates/user/auth/reset_passwd.tmpl
@6543 6543 mentioned this pull request Jan 19, 2020
Copy link
Copy Markdown
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

template format need more discusion ...
and then apply the style to all ...

but it should not block this fix

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 19, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 19, 2020
@zeripath zeripath merged commit fb8aea4 into go-gitea:master Jan 19, 2020
@zeripath zeripath deleted the reset-password-2fa branch January 19, 2020 20:17
pull Bot pushed a commit to techknowlogick/gitea that referenced this pull request Jan 19, 2020
* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>

* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath added a commit to zeripath/gitea that referenced this pull request Jan 19, 2020
* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>

* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath added a commit to zeripath/gitea that referenced this pull request Jan 19, 2020
* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>

* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath added a commit that referenced this pull request Jan 19, 2020
* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>

* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>

Co-authored-by: Lauris BH <lauris@nix.lv>
techknowlogick pushed a commit that referenced this pull request Jan 19, 2020
* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>

* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>

Co-authored-by: Lauris BH <lauris@nix.lv>
@zeripath zeripath added backport/done All backports for this PR have been created backport/v1.10 labels Jan 22, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants